#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int i = 0;
    int j = 0;
    int n = 0;
    while (scanf("%d", &n) != EOF)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < i; j++)
            {
                printf(" ");
            }
            for (j = 0; j < 1; j++)
            {
                printf("*");
            }
            printf("\n");
        }
    }
    return 0;
}
int main()
{
    int i = 0;
    int j = 0;
    int n = 0;
    while (scanf("%d", &n) != EOF)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n - 1 - i; j++)
            {
                printf(" ");
            }
            printf("*\n");
        }
    }
    return 0;
}
int main()
{
    int i = 0;
    int j = 0;
    int n = 0;
    while (scanf("%d", &n) != EOF)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n; j++)
            {
                if (i == j || j == n - 1 - i)
                {
                    printf("*");
                }
                else {
                    printf(" ");
                }
            }

            printf("\n");
        }

    }
    return 0;
}

int main()
{
    int i = 0;
    int j = 0;
    int n = 0;
    while (scanf("%d", &n) != -1)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n; j++)
            {
                if (i == 0 || i == n - 1 || j == 0 || j == n - 1)
                {
                    printf("* ");
                }
                else
                {
                    printf("  ");
                }
            }
            printf("\n");
        }
    }
    return 0;
}
int main()
{
    int i = 0;
    int j = 0;
    int n = 0;
    while (scanf("%d", &n) != -1)
    {
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n; j++)
            {
                if (i == j || j == 0 || i == n - 1)
                {
                    printf("* ");
                }
                else
                {
                    printf("  ");
                }

            }
            printf("\n");
        }
    }
    return 0;
}

int main()
{
    int i = 0;
    int j = 0;
    int n = 0;
    while (scanf("%d", &n) != -1)
    {
        for (i = 1; i <= n; i++)
        {
            for (j = 1; j <= i; j++)
            {
                printf("%d ", j);
            }
            printf("\n");
        }
    }
    return 0;

}